package fr.polichouz.geotracer.corelocator;

import java.util.Map;

import fr.polichouz.geotracer.shared.SimpleLocation;

/**
 * Datas persistence layer.
 * 
 * Do NOT clone the content list, because the layer need to share their link
 * with the client.
 * 
 * @author Yoyo
 */
public interface PersistenceLayer {

    /**
     * Get all accounts.
     * @return
     */
    Map<String, String> getAccounts();

    /**
     * Get all locations.
     * @return
     */
    Map<String, SimpleLocation> getlocations();

    /**
     * Make datas persist.
     */
    void persist();

}
